class AddAccountSigninCounterToAccount < ActiveRecord::Migration
  def change
    add_column :accounts, :account_signin_counter, :integer, :default => 0
    Account.reset_column_information
    Account.find_each do |a|
      Account.reset_counters a.id, :account_signins
    end
  end
end
